home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / util / batch / TTTool.readme < prev   
Text File  |  1997-09-05  |  2KB  |  50 lines

  1. Short:    Prints icon Tooltype value to StdOut - cli only - V1.1
  2. Author:   A.P. Suggitt, Great Ayton.  
  3. Uploader: peter@apsayton.demon.co.uk (A.P. Suggitt)
  4. Type:     util/batch
  5. Requires: WB 2.04+
  6.  
  7.  
  8. Purpose:  To read Tooltype value from Icon and print value to StdOut so
  9.           an IconX/XIcon/IconJ script can get it's variable parameters
  10.           from the icon instead of be in the script it'self or by the
  11.           use of enviroment variables.
  12.  
  13. Use:      The code is pure and can be made Resident, it has the following
  14.           WB 2.0 Template:-
  15.           
  16. INPUTS
  17.        Template: TTTool FILE/A,TOOLTYPE,TOOLVALUE,DEFTOOL/S,NOQUOTE/S,NOLINE/S
  18.  
  19.     FILE Filename of the File with the Icon to search (note .info not needed)
  20.     TOOLTYPE the Tooltype keyword to search for
  21.     TOOLVALUE Specific Value To check for
  22.     DEFTOOL Output the Default Tool string
  23.     NOQUOTE Do not put output string within Qoute marks
  24.     NOLINE  Do not output a new line character after the string
  25.  
  26.  
  27. RESULTS
  28.  
  29.     RC=0 If no options given outputs list of all tooltypes
  30.     RC=0 If the Tooltype exists (and matches TOOLVALUE if given)
  31.     RC=5 If the Tooltype not found (or not matching TOOLVALUE if given)
  32.     RC=10 If the required .info file is not found
  33.  
  34.     If the Tooltype in the Icon has a value this value is sent to STDOUT
  35.     whether or not it matches the requested TOOLVALE
  36.  
  37.  
  38. ============================= Archive contents =============================
  39.  
  40. Original  Packed Ratio    Date     Time    Name
  41. -------- ------- ----- --------- --------  -------------
  42.     1366     688 49.6% 16-Aug-97 13:44:22  TTTool.readme
  43.      632     282 55.3% 16-Aug-97 09:20:28  TTTool11.info
  44.      896     643 28.2% 16-Aug-97 13:41:28 +TTTool
  45.     2552    1126 55.8% 16-Aug-97 14:12:10 +TTTool.doc
  46.      501     288 42.5% 15-Aug-97 21:43:36 +TTTool.doc.info
  47.      462     206 55.4% 15-Aug-97 13:50:30 +TTTool.info
  48. -------- ------- ----- --------- --------
  49.     6409    3233 49.5% 18-Aug-97 00:35:24   6 files
  50.